package com.imm.pojo;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 购物车
 * @author HJy
 */
@Data
@TableName("shopping_cart")
public class ShoppingCart {

    @TableId("id")
    private Long id;
    @TableField("name")
    private String name;
    @TableField("image")
    private String image;
    @TableField("user_id")
    private Long userId;
    @TableField("dish_id")
    private Long dishId;
    @TableField("setmeal_id")
    private Long setmealId;
    @TableField("dish_flavor")
    private String dishFlavor;
    @TableField("number")
    private Integer number;
    @TableField("amount")
    private Double amount;
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

}
